package com.undsf.despot.utility;

import com.undsf.despot.modles.Metadata;
import com.undsf.utility.TextFileUtility;
import org.junit.Test;

/**
 * Created by Arathi on 2016/10/3.
 */
public class LoadMonsterFromXml {

    @Test
    public void load() {
        System.out.println("Loading xml ...");

        String path = "metadata.xml";
        String xml = TextFileUtility.ReadAll(path, "UTF-8");
        Metadata meta = Metadata.LoadFromXml(xml, true);

        System.out.println("xml Loaded ...");

        System.out.println("save to json");
    }
}
